import request from "@/router/axios";

export const submit = (data = {}) => {
  return request({
    url: "/api/things-task/task/submit",
    method: "post",
    data,
  });
};

export const getList = (params = {}) => {
  return request({
    url: "/api/things-task/task/getList",
    method: "get",
    params: { ...params },
  });
};

export const getResourceNumber = (params) => {
  return request({
    url: "/api/things-resource/depart/getResourceNumber?pid="+params,
    method: "get",
  });
};

export const remove = (data = {}) => {
  return request({
    url: "/api/things-task/task/remove",
    method: "post",
    data,
  });
};

export const publish = (data = {}) => {
  return request({
    url: "/api/things-task/task/publish",
    method: "post",
    data,
  });
};

export const xiajia = (data = {}) => {
  return request({
    url: "/api/things-task/task/xiajia",
    method: "post",
    data,
  });
};
